#include<stdio.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<dirent.h>
int main(int argc ,char const *argv[]){

    DIR* dir = opendir(".");
    if(NULL == dir){
        perror("opendir err");
        return -1; 
    }

    struct dirent* d=NULL;
    while((d = readdir(dir)) != NULL){
        if(d->d_name[0] != '.'){
            printf("%s\n",d->d_name);
        }
    }

    closedir(dir);
    return 0;
}